{% extends "../base_public.html" %}
{% load custom_markdown %}
{% block content %}
<div class="container-fluid" style="width:90%;padding-left: 180px;">
      <table class="table table-bordered">
          <tr style="font-weight: bold;">
            <td>ID</td>
            <td>AnsibleID</td>
            <!-- <td>CeleryID</td> -->
            <td>User</td>
            <!-- <td>GroupName</td> -->
            <td>任务</td>
            <td>参数</td>
            <td style="width:45px">结果</td>
            <td style="width:45px">状态</td>
            <td>Label</td>
          </tr>
        {% for t in AnsibleTasks reversed %}
        <tr>
            <td>{{ t.id }}</td>
            <td><a href="/ansible/get_Ansible_Tasks/?dataKey={{t.AnsibleID}}">{{ t.AnsibleID }}</a></td>
            <!-- <td>{{ t.CeleryID }}</td> -->
            <td>{{ t.TaskUser }}</td>
            <!-- <td>{{ t.GroupName }}</td> -->
            <td>{{ t.playbook }}</td>
            <td>{{ t.ExtraVars }}</td>
            <td><a href="/ansible/get_Ansible_Tasks/?dataKey={{t.AnsibleID}}">点击</a></td>
            <td>{{ t.CeleryResult|celery_status }}</td>
            <td>{{ t.Label }}</td>
        </tr>
        {% endfor %}
      </table>
    </div>
{% endblock %}
